package com.sboot.shiro.biz.sys.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sboot.shiro.biz.sys.user.po.SysUser;
import com.sboot.shiro.biz.sys.user.service.SysUserService;

@RestController
@RequestMapping("biz/sys/user")
public class SysUserController {

	@Autowired
	private SysUserService sysUserService;

	@RequestMapping(value = "/{id}", method = RequestMethod.GET)
	public SysUser getUserById(@PathVariable String id) {
		return sysUserService.getById(id);
	}

}
